<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="./../template/template.xhtml">
	<ui:define name="content">
		<h:form>
			<div class="FORM_HEADER">Edit Address</div>
			<h:inputHidden value="#{tutorController.tutorDTO.id}" />
			<h:panelGrid columns="2" styleClass="APPLICATION_CONTENT"
				cellpadding="2">
				<h:outputLabel value="Address Line1: " for="addressLine1" />
				<h:inputText id="addressLine1"
					value="#{tutorController.addressDTO.addressLine1}" />

				<h:outputLabel value="Address Line2: " for="addressLine2" />
				<h:inputText id="addressLine2"
					value="#{tutorController.addressDTO.addressLine2}"/>

				<h:outputLabel value="State: " for="state" />
				<h:inputText id="state"
					value="#{tutorController.addressDTO.province}"/>

				<h:outputLabel value="City: " for="city" />
				<h:inputText id="city" value="#{tutorController.addressDTO.city}" />

				<h:outputLabel value="Zip Code: " for="zipCode" />
				<h:inputText id="zipCode"
					value="#{tutorController.addressDTO.zipCode}" />

				<h:outputLabel value="Land Mark: " for="landMark" />
				<h:inputText id="landMark"
					value="#{tutorController.addressDTO.landMark}" />

				<h:outputText value="" />
				<p:commandButton value="Create"
					action="#{tutorController.updateAddress}" ajax="true" />
			</h:panelGrid>
		</h:form>

	</ui:define>
</ui:composition>
</html>